package com.example.good.service;

import com.example.good.entity.User;

public interface IUserService {
    void register(User user);
    User login(String username,String password);
    void forgetPsw(String username,String phone);
    User getByUid(Integer uid);
    void checkPassword(
            Integer uid,
            String username,
            String oldPassword
    );
    void changePassword(
            Integer uid,
            String username,
            String newPassword
    );
    void changeInfo(
            Integer uid,
            String username,
            User user
    );
}
